package domotica.scontrol.rcp.system;

import it.unibo.iss.domotica.SysDomotichScontrol;

public class StartUpSControl {
	
	private static SysDomotichScontrol sControl = null;

	public StartUpSControl() {
		System.out.println("StartUpSControl constructor");
	}
	
	public static SysDomotichScontrol getSControl() {
		
		if(sControl == null) {
			sControl = new SysDomotichScontrol();
			sControl.doJob();
		}
		
		return sControl;
	}
	
	public static void reset() {
		sControl = null;
	} 
}
